home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / rdf / nsIRDFLiteral.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  9KB  |  360 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIRDFLiteral.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIRDFLiteral_h__
  6. #define __gen_nsIRDFLiteral_h__
  7.  
  8.  
  9. #ifndef __gen_nsIRDFNode_h__
  10. #include "nsIRDFNode.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. #include "nscore.h" // for PRUnichar
  18.  
  19. /* starting interface:    nsIRDFLiteral */
  20. #define NS_IRDFLITERAL_IID_STR "e0c493d2-9542-11d2-8eb8-00805f29f370"
  21.  
  22. #define NS_IRDFLITERAL_IID \
  23.   {0xe0c493d2, 0x9542, 0x11d2, \
  24.     { 0x8e, 0xb8, 0x00, 0x80, 0x5f, 0x29, 0xf3, 0x70 }}
  25.  
  26. /**
  27.  * A literal node in the graph, whose value is a string.
  28.  */
  29. class NS_NO_VTABLE nsIRDFLiteral : public nsIRDFNode {
  30.  public: 
  31.  
  32.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IRDFLITERAL_IID)
  33.  
  34.   /**
  35.      * The Unicode string value of the literal.
  36.      */
  37.   /* readonly attribute wstring Value; */
  38.   NS_IMETHOD GetValue(PRUnichar * *aValue) = 0;
  39.  
  40.   /**
  41.      * An unscriptable version used to avoid a string copy. Meant
  42.      * for use as a performance optimization.
  43.      */
  44.   /* [noscript] void GetValueConst ([shared] out wstring aConstValue); */
  45.   NS_IMETHOD GetValueConst(const PRUnichar **aConstValue) = 0;
  46.  
  47. };
  48.  
  49. /* Use this macro when declaring classes that implement this interface. */
  50. #define NS_DECL_NSIRDFLITERAL \
  51.   NS_IMETHOD GetValue(PRUnichar * *aValue); \
  52.   NS_IMETHOD GetValueConst(const PRUnichar **aConstValue); 
  53.  
  54. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  55. #define NS_FORWARD_NSIRDFLITERAL(_to) \
  56.   NS_IMETHOD GetValue(PRUnichar * *aValue) { return _to GetValue(aValue); } \
  57.   NS_IMETHOD GetValueConst(const PRUnichar **aConstValue) { return _to GetValueConst(aConstValue); } 
  58.  
  59. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  60. #define NS_FORWARD_SAFE_NSIRDFLITERAL(_to) \
  61.   NS_IMETHOD GetValue(PRUnichar * *aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); } \
  62.   NS_IMETHOD GetValueConst(const PRUnichar **aConstValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValueConst(aConstValue); } 
  63.  
  64. #if 0
  65. /* Use the code below as a template for the implementation class for this interface. */
  66.  
  67. /* Header file */
  68. class nsRDFLiteral : public nsIRDFLiteral
  69. {
  70. public:
  71.   NS_DECL_ISUPPORTS
  72.   NS_DECL_NSIRDFLITERAL
  73.  
  74.   nsRDFLiteral();
  75.  
  76. private:
  77.   ~nsRDFLiteral();
  78.  
  79. protected:
  80.   /* additional members */
  81. };
  82.  
  83. /* Implementation file */
  84. NS_IMPL_ISUPPORTS1(nsRDFLiteral, nsIRDFLiteral)
  85.  
  86. nsRDFLiteral::nsRDFLiteral()
  87. {
  88.   /* member initializers and constructor code */
  89. }
  90.  
  91. nsRDFLiteral::~nsRDFLiteral()
  92. {
  93.   /* destructor code */
  94. }
  95.  
  96. /* readonly attribute wstring Value; */
  97. NS_IMETHODIMP nsRDFLiteral::GetValue(PRUnichar * *aValue)
  98. {
  99.     return NS_ERROR_NOT_IMPLEMENTED;
  100. }
  101.  
  102. /* [noscript] void GetValueConst ([shared] out wstring aConstValue); */
  103. NS_IMETHODIMP nsRDFLiteral::GetValueConst(const PRUnichar **aConstValue)
  104. {
  105.     return NS_ERROR_NOT_IMPLEMENTED;
  106. }
  107.  
  108. /* End of implementation class template. */
  109. #endif
  110.  
  111.  
  112. /* starting interface:    nsIRDFDate */
  113. #define NS_IRDFDATE_IID_STR "e13a24e1-c77a-11d2-80be-006097b76b8e"
  114.  
  115. #define NS_IRDFDATE_IID \
  116.   {0xe13a24e1, 0xc77a, 0x11d2, \
  117.     { 0x80, 0xbe, 0x00, 0x60, 0x97, 0xb7, 0x6b, 0x8e }}
  118.  
  119. /**
  120.  * A literal node in the graph, whose value is a date
  121.  */
  122. class NS_NO_VTABLE nsIRDFDate : public nsIRDFNode {
  123.  public: 
  124.  
  125.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IRDFDATE_IID)
  126.  
  127.   /**
  128.      * The date value of the literal
  129.      */
  130.   /* readonly attribute long long Value; */
  131.   NS_IMETHOD GetValue(PRInt64 *aValue) = 0;
  132.  
  133. };
  134.  
  135. /* Use this macro when declaring classes that implement this interface. */
  136. #define NS_DECL_NSIRDFDATE \
  137.   NS_IMETHOD GetValue(PRInt64 *aValue); 
  138.  
  139. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  140. #define NS_FORWARD_NSIRDFDATE(_to) \
  141.   NS_IMETHOD GetValue(PRInt64 *aValue) { return _to GetValue(aValue); } 
  142.  
  143. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  144. #define NS_FORWARD_SAFE_NSIRDFDATE(_to) \
  145.   NS_IMETHOD GetValue(PRInt64 *aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); } 
  146.  
  147. #if 0
  148. /* Use the code below as a template for the implementation class for this interface. */
  149.  
  150. /* Header file */
  151. class nsRDFDate : public nsIRDFDate
  152. {
  153. public:
  154.   NS_DECL_ISUPPORTS
  155.   NS_DECL_NSIRDFDATE
  156.  
  157.   nsRDFDate();
  158.  
  159. private:
  160.   ~nsRDFDate();
  161.  
  162. protected:
  163.   /* additional members */
  164. };
  165.  
  166. /* Implementation file */
  167. NS_IMPL_ISUPPORTS1(nsRDFDate, nsIRDFDate)
  168.  
  169. nsRDFDate::nsRDFDate()
  170. {
  171.   /* member initializers and constructor code */
  172. }
  173.  
  174. nsRDFDate::~nsRDFDate()
  175. {
  176.   /* destructor code */
  177. }
  178.  
  179. /* readonly attribute long long Value; */
  180. NS_IMETHODIMP nsRDFDate::GetValue(PRInt64 *aValue)
  181. {
  182.     return NS_ERROR_NOT_IMPLEMENTED;
  183. }
  184.  
  185. /* End of implementation class template. */
  186. #endif
  187.  
  188.  
  189. /* starting interface:    nsIRDFInt */
  190. #define NS_IRDFINT_IID_STR "e13a24e3-c77a-11d2-80be-006097b76b8e"
  191.  
  192. #define NS_IRDFINT_IID \
  193.   {0xe13a24e3, 0xc77a, 0x11d2, \
  194.     { 0x80, 0xbe, 0x00, 0x60, 0x97, 0xb7, 0x6b, 0x8e }}
  195.  
  196. /**
  197.  * A literal node in the graph, whose value is an integer
  198.  */
  199. class NS_NO_VTABLE nsIRDFInt : public nsIRDFNode {
  200.  public: 
  201.  
  202.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IRDFINT_IID)
  203.  
  204.   /**
  205.      * The integer value of the literal
  206.      */
  207.   /* readonly attribute long Value; */
  208.   NS_IMETHOD GetValue(PRInt32 *aValue) = 0;
  209.  
  210. };
  211.  
  212. /* Use this macro when declaring classes that implement this interface. */
  213. #define NS_DECL_NSIRDFINT \
  214.   NS_IMETHOD GetValue(PRInt32 *aValue); 
  215.  
  216. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  217. #define NS_FORWARD_NSIRDFINT(_to) \
  218.   NS_IMETHOD GetValue(PRInt32 *aValue) { return _to GetValue(aValue); } 
  219.  
  220. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  221. #define NS_FORWARD_SAFE_NSIRDFINT(_to) \
  222.   NS_IMETHOD GetValue(PRInt32 *aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); } 
  223.  
  224. #if 0
  225. /* Use the code below as a template for the implementation class for this interface. */
  226.  
  227. /* Header file */
  228. class nsRDFInt : public nsIRDFInt
  229. {
  230. public:
  231.   NS_DECL_ISUPPORTS
  232.   NS_DECL_NSIRDFINT
  233.  
  234.   nsRDFInt();
  235.  
  236. private:
  237.   ~nsRDFInt();
  238.  
  239. protected:
  240.   /* additional members */
  241. };
  242.  
  243. /* Implementation file */
  244. NS_IMPL_ISUPPORTS1(nsRDFInt, nsIRDFInt)
  245.  
  246. nsRDFInt::nsRDFInt()
  247. {
  248.   /* member initializers and constructor code */
  249. }
  250.  
  251. nsRDFInt::~nsRDFInt()
  252. {
  253.   /* destructor code */
  254. }
  255.  
  256. /* readonly attribute long Value; */
  257. NS_IMETHODIMP nsRDFInt::GetValue(PRInt32 *aValue)
  258. {
  259.     return NS_ERROR_NOT_IMPLEMENTED;
  260. }
  261.  
  262. /* End of implementation class template. */
  263. #endif
  264.  
  265.  
  266. /* starting interface:    nsIRDFBlob */
  267. #define NS_IRDFBLOB_IID_STR "237f85a2-1dd2-11b2-94af-8122582fc45e"
  268.  
  269. #define NS_IRDFBLOB_IID \
  270.   {0x237f85a2, 0x1dd2, 0x11b2, \
  271.     { 0x94, 0xaf, 0x81, 0x22, 0x58, 0x2f, 0xc4, 0x5e }}
  272.  
  273. /**
  274.  * A literal node in the graph, whose value is arbitrary
  275.  * binary data.
  276.  */
  277. class NS_NO_VTABLE nsIRDFBlob : public nsIRDFNode {
  278.  public: 
  279.  
  280.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IRDFBLOB_IID)
  281.  
  282.   /**
  283.      * The binary data.
  284.      */
  285.   /* [noscript] readonly attribute const_octet_ptr value; */
  286.   NS_IMETHOD GetValue(const PRUint8 * *aValue) = 0;
  287.  
  288.   /**
  289.      * The data's length.
  290.      */
  291.   /* readonly attribute long length; */
  292.   NS_IMETHOD GetLength(PRInt32 *aLength) = 0;
  293.  
  294. };
  295.  
  296. /* Use this macro when declaring classes that implement this interface. */
  297. #define NS_DECL_NSIRDFBLOB \
  298.   NS_IMETHOD GetValue(const PRUint8 * *aValue); \
  299.   NS_IMETHOD GetLength(PRInt32 *aLength); 
  300.  
  301. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  302. #define NS_FORWARD_NSIRDFBLOB(_to) \
  303.   NS_IMETHOD GetValue(const PRUint8 * *aValue) { return _to GetValue(aValue); } \
  304.   NS_IMETHOD GetLength(PRInt32 *aLength) { return _to GetLength(aLength); } 
  305.  
  306. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  307. #define NS_FORWARD_SAFE_NSIRDFBLOB(_to) \
  308.   NS_IMETHOD GetValue(const PRUint8 * *aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); } \
  309.   NS_IMETHOD GetLength(PRInt32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } 
  310.  
  311. #if 0
  312. /* Use the code below as a template for the implementation class for this interface. */
  313.  
  314. /* Header file */
  315. class nsRDFBlob : public nsIRDFBlob
  316. {
  317. public:
  318.   NS_DECL_ISUPPORTS
  319.   NS_DECL_NSIRDFBLOB
  320.  
  321.   nsRDFBlob();
  322.  
  323. private:
  324.   ~nsRDFBlob();
  325.  
  326. protected:
  327.   /* additional members */
  328. };
  329.  
  330. /* Implementation file */
  331. NS_IMPL_ISUPPORTS1(nsRDFBlob, nsIRDFBlob)
  332.  
  333. nsRDFBlob::nsRDFBlob()
  334. {
  335.   /* member initializers and constructor code */
  336. }
  337.  
  338. nsRDFBlob::~nsRDFBlob()
  339. {
  340.   /* destructor code */
  341. }
  342.  
  343. /* [noscript] readonly attribute const_octet_ptr value; */
  344. NS_IMETHODIMP nsRDFBlob::GetValue(const PRUint8 * *aValue)
  345. {
  346.     return NS_ERROR_NOT_IMPLEMENTED;
  347. }
  348.  
  349. /* readonly attribute long length; */
  350. NS_IMETHODIMP nsRDFBlob::GetLength(PRInt32 *aLength)
  351. {
  352.     return NS_ERROR_NOT_IMPLEMENTED;
  353. }
  354.  
  355. /* End of implementation class template. */
  356. #endif
  357.  
  358.  
  359. #endif /* __gen_nsIRDFLiteral_h__ */
  360.